package com.lpc.android.abc.main.mvp;

import com.lpc.android.abc.base.api.Api;
import com.lpc.android.abc.base.bean.HomeCampaign;
import com.lpc.android.abc.base.bean.Ware;

import java.util.List;
import java.util.Map;

import javax.inject.Inject;

import io.reactivex.Flowable;

/**
 * Created by lipc0113 on 2017/6/16 0016.
 */

public class MainModel extends Api {


    public MainModel() {
    }

    public Flowable<List<HomeCampaign>> getHomeInfo() {

        return getApiService().getHomeInfo();
    }

    public Flowable<Ware> getWaresList(Map<String, String> map) {
         return getApiService().getWaresList(map);
    }
}
